From cdb3f05bf1fc374151285660c35569a3f3928ba3 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 23 Dec 2011 14:30:59 +0100 Subject: [PATCH] css: Add _gtk_style_property_get_count() --- gtk/gtkstyleproperty.c | 6 ++++++ gtk/gtkstylepropertyprivate.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c index f1738b15cc..681acf6de7 100644 --- a/gtk/gtkstyleproperty.c +++ b/gtk/gtkstyleproperty.c @@ -2241,6 +2241,12 @@ border_color_default_value (GtkStyleProperties *props, /*** API ***/ +guint +_gtk_style_property_get_count (void) +{ + return __n_style_properties; +} + static void css_string_funcs_init (void) { diff --git a/gtk/gtkstylepropertyprivate.h b/gtk/gtkstylepropertyprivate.h index 5692490e25..fc52ae51cb 100644 --- a/gtk/gtkstylepropertyprivate.h +++ b/gtk/gtkstylepropertyprivate.h @@ -63,6 +63,8 @@ struct _GtkStyleProperty GtkStyleUnsetFunc unset_func; }; +guint _gtk_style_property_get_count (void); + const GtkStyleProperty * _gtk_style_property_lookup (const char *name); void _gtk_style_property_register (GParamSpec *pspec, -- 2.30.2